﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using DCTLib.Common;

public partial class TimKiem_chi_tiet_tim_kiem : System.Web.UI.Page
{
    private string strKeyword = string.Empty;
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            LoadingData();
        }
    }

    protected void LoadingData()
    {
        try
        {
            strKeyword = Request.QueryString["keyword"];
            lblResult.Text = strKeyword;
        }
        catch (System.Exception ex)
        {
        	
        }
    }

    protected void btnSearch_Click(object sender, ImageClickEventArgs e)
    {

    }
    protected void btnAdvanceSearch_Click(object sender, ImageClickEventArgs e)
    {
        Response.Redirect("/timkiem/tim-kiem-nang-cao.aspx");
    }

    public string FormatPrice(object num)
    {
        if (num.ToString() == "-1")
            return "Thỏa thuận";
        return String.Format("{0:#,##}", num);
    }

    public string ReturnImage(object images)
    {
        if (images.Equals(null) || images.Equals(""))
            return "../images/No_Images.gif";
        return images.ToString();
    }
    protected void gvSearch_PageIndexChanging(object sender, GridViewPageEventArgs e)
    {

    }
}
